/**
 * input 封装
 * @author xiaoxujs
 */

import { FC } from "react"
import { InputXBox } from "./style"


const InputX: FC<{
    value?: string,
    onChange?: (value: string) => void
    placeholder?: string
}> = ({
    value = '',
    onChange,
    placeholder = ''
}) => {
        return <InputXBox>
            <input type="text" placeholder={placeholder} value={value} onChange={(e) => onChange && onChange(e.target.value)} />
        </InputXBox>


    }

export default InputX